﻿using Jint;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.IO;
using System.Reflection;
//using T.FAS.WF.Participant.SysPlugin.Model;
using System.Security.Principal;
using System.Text;
using System.Text.RegularExpressions;
using T.FAS.Runtime.Expression.Entity;
using T.FAS.Runtime.Expression.Service;
//using T.FAS.WF.Participant.Impl;

namespace T.FAS.Runtime.Expression.UnitTest
{
    [TestClass]
    public class AFRUnit
    {
        UserInfo[] userInfos = new UserInfo[] { new UserInfo { UserId = "zhangsan" } };
        Dictionary<string, object> dic = new Dictionary<string, object>();
       
        
    }
    class UserInfo
    {
        /// <summary>
        /// 内码
        /// </summary>
        public string UserId { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 登录账号
        /// </summary>
        public string Account { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 登录密钥
        /// </summary>
        public string SecretKey { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string RealName { get; set; }
        /// <summary>
        /// 别名
        /// </summary>
        public string Alias { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public string Gender { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string Mobile { get; set; }
        /// <summary>
        /// 固话
        /// </summary>
        public string TelePhone { get; set; }
        /// <summary>
        /// 生日
        /// </summary>
        public DateTime? Birthday { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// QQ号
        /// </summary>
        public string OICQ { get; set; }
        /// <summary>
        /// 公司内码
        /// </summary>
        public string CompanyId { get; set; }
        /// <summary>
        /// 部门内码
        /// </summary>
        public string DepartmentId { get; set; }
        /// <summary>
        /// 工作组内码
        /// </summary>
        public string WorkgroupId { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 微信OpenId
        /// </summary>
        public string OpenId { get; set; }

        /// <summary>
        /// 是否是有效用户1：有效，0：无效
        /// </summary>
        public int? Enabled { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string Avatar { get; set; }
        /// <summary>
        /// 皮肤
        /// </summary>
        public string Skin { get; set; }
        /// <summary>
        /// 核算单位内码
        /// </summary>
        public string ACCompanyID { get; set; }
        /// <summary>
        /// 企业客户内码
        /// </summary>
        public string BusiCustID { get; set; }


        /// <summary>
        /// 是否已经同步Customer表
        /// </summary>
        public int IsSync { get; set; }

        /// <summary>
        /// 客户内码
        /// </summary>
        public string CustomerId { get; set; }

        /// <summary>
        /// 手机号区号
        /// </summary>
        public string AreaCode { get; set; }

        /// <summary>
        /// 返回XXX-XXXXXX
        /// </summary>
        public string AreaCodeAndMobile
        {
            get
            {
                return this.AreaCode + "-" + this.Mobile;
            }
        }

        /// <summary>
        /// 是否在职
        /// </summary>
        public string IsInOffice { get; set; }

        /// <summary>
        /// 是否是特来电内部员工
        /// </summary>
        public string IsInternalUser { get; set; }

        /// <summary>
        /// 密码更新时间
        /// </summary>
        public DateTime? ChangePasswordDate { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
    }
    
}
